home *** CD-ROM | disk | FTP | other *** search
/ Workbench Design / WB Collection.iso / workbench werkzeuge / uhren & terminkalender / organizer / gcbplaner / install_gcbplaner < prev    next >
Text File  |  1996-04-07  |  21KB  |  781 lines

  1. ;-------------------------------------------------------------------
  2. ; $VER: Install-GCB-Produkte V2.00 Dienstag 24.01.95
  3. ;       Gabriele Christine Bauer
  4. ;       St.-Augustinus-Str 74
  5. ;       81825 München
  6. ;       Deutschland
  7. ;-------------------------------------------------------------------
  8. ; Globalvariablen
  9. ;-------------------------------------------------------------------
  10. (set produkt (cat "GCBPlaner"))
  11. (set version (cat "V3.13"))
  12. (delopts AskUser)
  13. (set @language "deutsch")
  14. (set false 0)
  15. (set true 1)
  16. ;-------------------------------------------------------------------
  17. ; Begrüßung
  18. ;-------------------------------------------------------------------
  19. (set gruss (cat "Willkommen bei der Installation von "produkt" "version))
  20. (welcome gruss)
  21. ;-------------------------------------------------------------------
  22. ; Ermittlung Kickstart und Workbench
  23. ;-------------------------------------------------------------------
  24. (set kickVersion (shiftright (getversion) 16))
  25. (set wbVersion (shiftright (getversion "LIBS:version.library") 16))
  26. ;-------------------------------------------------------------------
  27. ; Abfrage auf richtige Version
  28. ;-------------------------------------------------------------------
  29. (set abbruch 
  30.   (cat "Leider sind Sie nicht im Besitz einer Workbench-Version 2.04 oder höher"
  31.           "\n\n"
  32.           "Somit können Sie "produkt" nicht installieren"
  33.           "\n\n"
  34.           "Abbruch der Installation"
  35.   )
  36. )
  37. (if (< WBVersion 37)
  38.   (
  39.     (message abbruch)
  40.     (exit (quiet))
  41.   )
  42. )
  43. (complete 0)
  44. ;-------------------------------------------------------------------
  45. ; Copyright
  46. ;-------------------------------------------------------------------
  47. (set copyright
  48.   (cat "\n\n" 
  49.        produkt"-Installationsskript."
  50.        "\n"
  51.          "Diese Installationsroutine installiert "produkt" auf Ihrem Amiga."
  52.          "\n\n"
  53.          "Lesen Sie bitte die Dokumentation für "
  54.        "weitere Informationen über die Weitergeabe. "
  55.        "\n\n"
  56.        produkt" "version" © 1995 Gabriele Christine Bauer "
  57.        "\n"
  58.        "Alle Rechte vorbehalten."
  59.   )
  60. )
  61. (message copyright)
  62. (complete 10)
  63. ;-------------------------------------------------------------------
  64. ; Abfrage auf vorhandene Installation
  65. ;-------------------------------------------------------------------
  66. (set gcbvorhanden false)
  67. (set produktvorhanden false)
  68. (if (= (exists "S:GCBProdukt.exists") true)
  69.   (
  70.     (set gcbvorhanden true)
  71.     (if (= (exists (cat "GCBProdukte:"produkt)) true)
  72.       (
  73.         (set produktvorhanden true)
  74.       )
  75.     )
  76.     (if ( and (= produktvorhanden false) (= (exists (cat "SYS:WBStartup/"produkt)) true))
  77.       (
  78.         (set produktvorhanden true)
  79.       )
  80.     )
  81.   )
  82. )
  83. (complete 20)
  84. ;-------------------------------------------------------------------
  85. ; Abfrage auf Installationsart
  86. ;-------------------------------------------------------------------
  87. (set frage
  88.   (cat "Bitte wählen Sie eine der unten stehenden Möglichkeiten aus:"
  89.   )
  90. )
  91. (if (= produktvorhanden false)
  92.   (
  93.     (set inst
  94.       (cat "Installation von "produkt" "version
  95.       )
  96.     )
  97.   )
  98. )
  99. (if (= produktvorhanden true)
  100.   (
  101.     (set inst
  102.       (cat "Update auf "produkt" "version
  103.       )
  104.     )
  105.   )
  106. )
  107. (set remo
  108.   (cat produkt" von Festplatte entfernen"
  109.   )
  110. )
  111. (set vers
  112.   (cat "Systeminformationen abrufen"
  113.   )
  114. )
  115. (set wahl
  116.   (askchoice
  117.     (prompt frage)
  118.     (choices inst remo vers)
  119.     (help @askchoise-help)
  120.   )
  121. )
  122. (complete 30)
  123. ;-------------------------------------------------------------------
  124. ; Abfrage auf Remove
  125. ;-------------------------------------------------------------------
  126. (set abbruch
  127.   (cat "\n\n" 
  128.        "Sie können "produkt" nicht von der Festplatte entfernen, "
  129.        "da Sie es noch nicht installiert haben."
  130.   )
  131. )
  132. (if (and (= produktvorhanden false) (= wahl 1))
  133.   (
  134.     (message abbruch)
  135.     (exit (quiet))
  136.   )
  137. )
  138. (complete 40)
  139. ;-------------------------------------------------------------------
  140. ; Sichern der pers. Daten
  141. ;-------------------------------------------------------------------
  142. (if (and (= wahl 0) (= produktvorhanden true))
  143.   (
  144.     (run ("makedir >nil: RAM:GCBDAT"))
  145.     (set text
  146.       (cat "\n\nDa Sie schon eine Version von "produkt" installiert haben, "
  147.            "werden zuerst Ihre persönlichen Daten zwischengespeichert."
  148.       )
  149.     )
  150.     (message text)
  151.     (set text
  152.       (cat "Sichere persönliche Daten nach RAM:GCBDAT"
  153.       )
  154.     )
  155.     (if (= produkt (cat "GCBPlaner"))
  156.       (
  157.         (if (= (exists "GCBProdukte:GCBPlaner.key") true)
  158.           (
  159.             (copyfiles
  160.               (prompt text)
  161.               (source "GCBProdukte:GCBPlaner.key")
  162.               (dest "RAM:GCBDAT/")
  163.             )
  164.           )
  165.         )
  166.         (if (= (exists "GCBProdukte:GCBPlaner.Dat") true)
  167.           (
  168.             (copyfiles
  169.               (prompt text)
  170.               (source "GCBProdukte:GCBPlaner.Dat")
  171.               (dest "RAM:GCBDAT/")
  172.             )
  173.           )
  174.         )
  175.         (if (= (exists "GCBProdukte:GCBPlaner.Konfig") true)
  176.           (
  177.             (copyfiles
  178.               (prompt text)
  179.               (source "GCBProdukte:GCBPlaner.Konfig")
  180.               (dest "RAM:GCBDAT/")
  181.             )
  182.           )
  183.         )
  184.         (if (= (exists "SYS:WBStartup/GCBPlaner.info") true)
  185.           (
  186.             (copyfiles
  187.               (prompt text)
  188.               (source "SYS:WBStartup/GCBPlaner.info")
  189.               (dest "RAM:GCBDAT/")
  190.             )
  191.           )
  192.         )
  193.       )
  194.     )
  195.     (if (= produkt (cat "GCBVideo"))
  196.       (
  197.         (if (= (exists "GCBProdukte:GCBVideo.Key") true)
  198.           (
  199.             (copyfiles
  200.               (prompt text)
  201.               (source "GCBProdukte:GCBVideo.Key")
  202.               (dest "RAM:GCBDAT/")
  203.             )
  204.           )
  205.         )
  206.         (if (= (exists "GCBProdukte:GCBVideo.Konfig") true)
  207.           (
  208.             (copyfiles
  209.               (prompt text)
  210.               (source "GCBProdukte:GCBVideo.Konfig")
  211.               (dest "RAM:GCBDAT/")
  212.             )
  213.           )
  214.         )
  215.         (if (= (exists "GCBProdukte:GCBVideo.Archiv") true)
  216.           (
  217.             (copyfiles
  218.               (prompt text)
  219.               (source "GCBProdukte:GCBVideo.Archiv")
  220.               (dest "RAM:GCBDAT/")
  221.             )
  222.           )
  223.         )
  224.         (if (= (exists "GCBProdukte:GCBVideo.Aufnahmen") true)
  225.           (
  226.             (copyfiles
  227.               (prompt text)
  228.               (source "GCBProdukte:GCBVideo.Aufnahmen")
  229.               (dest "RAM:GCBDAT/")
  230.             )
  231.           )
  232.         )
  233.         (if (= (exists "GCBProdukte:GCBVideo.Frei") true)
  234.           (
  235.             (copyfiles
  236.               (prompt text)
  237.               (source "GCBProdukte:GCBVideo.Frei")
  238.               (dest "RAM:GCBDAT/")
  239.             )
  240.           )
  241.         )
  242.         (if (= (exists "GCBProdukte:GCBVideo.Kategorien") true)
  243.           (
  244.             (copyfiles
  245.               (prompt text)
  246.               (source "GCBProdukte:GCBVideo.Kategorien")
  247.               (dest "RAM:GCBDAT/")
  248.             )
  249.           )
  250.         )
  251.         (if (= (exists "GCBProdukte:GCBVideo.Programme") true)
  252.           (
  253.             (copyfiles
  254.               (prompt text)
  255.               (source "GCBProdukte:GCBVideo.Programme")
  256.               (dest "RAM:GCBDAT/")
  257.             )
  258.           )
  259.         )
  260.         (if (= (exists "GCBProdukte:GCBVideo.info") true)
  261.           (
  262.             (copyfiles
  263.               (prompt text)
  264.               (source "GCBProdukte:GCBVideo.info")
  265.               (dest "RAM:GCBDAT/")
  266.             )
  267.           )
  268.         )
  269.       )
  270.     )
  271.     (if (= produkt (cat "GCBAdresse"))
  272.       (
  273.         (if (= (exists "GCBProdukte:GCBAdresse.Key") true)
  274.           (
  275.             (copyfiles
  276.               (prompt text)
  277.               (source "GCBProdukte:GCBAdresse.Key")
  278.               (dest "RAM:GCBDAT/")
  279.             )
  280.           )
  281.         )
  282.         (if (= (exists "GCBProdukte:GCBAdresse.Orte") true)
  283.           (
  284.             (copyfiles
  285.               (prompt text)
  286.               (source "GCBProdukte:GCBAdresse.Orte")
  287.               (dest "RAM:GCBDAT/")
  288.             )
  289.           )
  290.         )
  291.         (if (= (exists "GCBProdukte:GCBAdresse.Bank") true)
  292.           (
  293.             (copyfiles
  294.               (prompt text)
  295.               (source "GCBProdukte:GCBAdresse.Bank")
  296.               (dest "RAM:GCBDAT/")
  297.             )
  298.           )
  299.         )
  300.         (if (= (exists "GCBProdukte:GCBAdresse.Konfig") true)
  301.           (
  302.             (copyfiles
  303.               (prompt text)
  304.               (source "GCBProdukte:GCBAdresse.Konfig")
  305.               (dest "RAM:GCBDAT/")
  306.             )
  307.           )
  308.         )
  309.         (if (= (exists "GCBProdukte:GCBAdresse.Adressen") true)
  310.           (
  311.             (copyfiles
  312.               (prompt text)
  313.               (source "GCBProdukte:GCBAdresse.Adressen")
  314.               (dest "RAM:GCBDAT/")
  315.             )
  316.           )
  317.         )
  318.         (if (= (exists "GCBProdukte:GCBAdresse.GrpSchalt") true)
  319.           (
  320.             (copyfiles
  321.               (prompt text)
  322.               (source "GCBProdukte:GCBAdresse.GrpSchalt")
  323.               (dest "RAM:GCBDAT/")
  324.             )
  325.           )
  326.         )
  327.         (if (= (exists "GCBProdukte:GCBAdresse.Gruppen") true)
  328.           (
  329.             (copyfiles
  330.               (prompt text)
  331.               (source "GCBProdukte:GCBAdresse.Gruppen")
  332.               (dest "RAM:GCBDAT/")
  333.             )
  334.           )
  335.         )
  336.         (if (= (exists "GCBProdukte:GCBAdresse.info") true)
  337.           (
  338.             (copyfiles
  339.               (prompt text)
  340.               (source "GCBProdukte:GCBAdresse.info")
  341.               (dest "RAM:GCBDAT/")
  342.             )
  343.           )
  344.         )
  345.       )
  346.     )
  347.     (if (= produkt (cat "GCBNotiz"))
  348.       (
  349.         (if (= (exists "GCBProdukte:GCBNotiz.Key") true)
  350.           (
  351.             (copyfiles
  352.               (prompt text)
  353.               (source "GCBProdukte:GCBNotiz.Key")
  354.               (dest "RAM:GCBDAT/")
  355.             )
  356.           )
  357.         )
  358.         (if (= (exists "GCBProdukte:GCBNotiz.Konfig") true)
  359.           (
  360.             (copyfiles
  361.               (prompt text)
  362.               (source "GCBProdukte:GCBNotiz.Konfig")
  363.               (dest "RAM:GCBDAT/")
  364.             )
  365.           )
  366.         )
  367.         (if (= (exists "GCBProdukte:GCBNotiz.Notizen") true)
  368.           (
  369.             (copyfiles
  370.               (prompt text)
  371.               (source "GCBProdukte:GCBNotiz.Notizen")
  372.               (dest "RAM:GCBDAT/")
  373.             )
  374.           )
  375.         )
  376.         (if (= (exists "GCBProdukte:GCBNotiz.info") true)
  377.           (
  378.             (copyfiles
  379.               (prompt text)
  380.               (source "GCBProdukte:GCBNotiz.info")
  381.               (dest "RAM:GCBDAT/")
  382.             )
  383.           )
  384.         )
  385.       )
  386.     )
  387.     (if (= produkt (cat "GCBDruck"))
  388.       (
  389.         (if (= (exists "GCBProdukte:GCBDruck.Key") true)
  390.           (
  391.             (copyfiles
  392.               (prompt text)
  393.               (source "GCBProdukte:GCBDruck.Key")
  394.               (dest "RAM:GCBDAT/")
  395.             )
  396.           )
  397.         )
  398.         (if (= (exists "GCBProdukte:GCBDruck.Konfig") true)
  399.           (
  400.             (copyfiles
  401.               (prompt text)
  402.               (source "GCBProdukte:GCBDruck.Konfig")
  403.               (dest "RAM:GCBDAT/")
  404.             )
  405.           )
  406.         )
  407.         (if (= (exists "GCBProdukte:GCBDruck.info") true)
  408.           (
  409.             (copyfiles
  410.               (prompt text)
  411.               (source "GCBProdukte:GCBDruck.info")
  412.               (dest "RAM:GCBDAT/")
  413.             )
  414.           )
  415.         )
  416.       )
  417.     )
  418.   )
  419. )
  420. (complete 50)
  421. ;-------------------------------------------------------------------
  422. ; Entferne bisherige Installation bei (wahl < 2)
  423. ;-------------------------------------------------------------------
  424. (if (and (< wahl 2) (= produktvorhanden true))
  425.   (
  426.     (set text
  427.       (cat "\n\nAuf Ihrer Festplatte wird nun "produkt" entfernt"
  428.       )
  429.     )
  430.     (message text)
  431.     (run
  432.       (cat "delete >nil: SYS:WBStartUp/"produkt"#? all"
  433.       )
  434.     )
  435.     (run
  436.       (cat "delete >nil: GCBProdukte:"produkt"#? all"
  437.       )
  438.     )
  439.     (set produktvorhanden false)
  440.   )
  441. )
  442. (complete 70)
  443. ;-------------------------------------------------------------------
  444. ; Entferne Assign & s:gcbprodukt.exists
  445. ;-------------------------------------------------------------------
  446. (set sonstgcbprodukt false)
  447. (if (and (< wahl 2) (= gcbvorhanden true))
  448.   (
  449.     (if (= (exists "SYS:WBStartup/GCBPlaner") true)
  450.       (
  451.         (set sonstgcbprodukt true)
  452.       )
  453.     )
  454.     (if (= (exists "GCBProdukte:GCBVideo") true)
  455.       (
  456.         (set sonstgcbprodukt true)
  457.       )
  458.     )
  459.     (if (= (exists "GCBProdukte:GCBAdresse") true)
  460.       (
  461.         (set sonstgcbprodukt true)
  462.       )
  463.     )
  464.     (if (= (exists "GCBProdukte:GCBNotiz") true)
  465.       (
  466.         (set sonstgcbprodukt true)
  467.       )
  468.     )
  469.     (if (= (exists "GCBProdukte:GCBDruck") true)
  470.       (
  471.         (set sonstgcbprodukt true)
  472.       )
  473.     )
  474.     (if (= sonstgcbprodukt false)
  475.       (
  476.         (run ("execute gcbwo"))
  477.         (set srcdir (getenv "GCBTemp"))
  478.         (delete "ENV:GCBTemp")
  479.         (set text
  480.           (cat "Da Sie keine weiteren GCB-Produkte installiert haben, "
  481.                "wird die Schublade "srcdir" auf Ihrer Festplatte gelöscht und "
  482.                "der Assign in der Datei USER-Startup entfernt."
  483.           )
  484.         )
  485.         (startup "GCB-Produkte"
  486.           (prompt text)
  487.           (help @startup-help)
  488.         )
  489.         (run "assign GCBProdukte: remove")
  490.         (run
  491.           (cat "delete >nil: \""srcdir"\" all"
  492.           )
  493.         )
  494.         (delete "S:GCBProdukt.exists")
  495.         (set gcbvorhanden false)
  496.       )
  497.     )
  498.   )
  499. )
  500. (if (= wahl 1)
  501.   (
  502.     (exit (quiet))
  503.   )
  504. )
  505. (complete 80)
  506. ;-------------------------------------------------------------------
  507. ; Installieren neue Version (wahl = 0)
  508. ;-------------------------------------------------------------------
  509. (if (= wahl 0)
  510.   (
  511.     (if (= (exists (cat "WBStartUp/"produkt)) true)
  512.       (
  513.         (set text
  514.           (cat "\n\nKopiere das Startprogramm von "produkt" in die Schublade "
  515.                "SYS:WBStartUp. Beim nächsten Rechnerstart wird das Startprogramm "
  516.                " aktiv."
  517.           )
  518.         )
  519.         (message text)
  520.         (copyfiles
  521.           (prompt "Installiere Startprogramm")
  522.           (source "WBStartUp/")
  523.           (pattern "#?")
  524.           (dest "SYS:WBStartUp")
  525.         )
  526.       )
  527.     )
  528.     (if (= gcbvorhanden false)
  529.       (
  530.         (set GCBWahl
  531.           (askdir
  532.             (prompt
  533.               (cat "Wohin soll "produkt" installiert werden ?\nEin Verzeichnis"
  534.                    " GCBProdukte wird erzeugt."
  535.               )
  536.             )
  537.             (help @askdir-help)
  538.             (default "SYS:")
  539.           )
  540.         )
  541.         (set GCBDir (tackon GCBWahl "GCBProdukte"))
  542.         (makedir GCBDir)
  543.         (run (cat "assign GCBProdukte: \""GCBDir"\""))
  544.         (set GCBORGXX GCBDir)
  545.         (set GCBDir "GCBProdukte:")
  546.       )
  547.     )
  548.     (if (= gcbvorhanden true)
  549.       (
  550.         (set GCBDir "GCBProdukte:")
  551.       )
  552.     )
  553.     (set text
  554.       (cat "\nKopiere die Oberfläche von "produkt" und die Dokumentation"
  555.            " in das Verzeichnis "GCBDir
  556.            "\n\n"
  557.            "\nDies ist eine nicht registrierte Public-Domain-Version. Mit dieser "
  558.            "Version sind nur 5 Einträge möglich."
  559.       )
  560.     )
  561.     (if (= (exists (cat "GCBProdukte/"produkt".key")) true)
  562.       (
  563.         (set text
  564.           (cat "\nKopiere die Oberfläche von "produkt" und die Dokumentation"
  565.                " in das Verzeichnis "GCBDir
  566.                "\n\n"
  567.                "\nDies ist eine registrierte Shareware-Verion. Nochmals "
  568.                "vielen Dank für die Unterstützung des Shareware-Konzepts"
  569.           )
  570.         )
  571.         (run
  572.           (cat "delete >nil: RAM:GCBDAT/"produkt".key")
  573.         )
  574.       )
  575.     )  
  576.     (if (= (exists (cat "RAM:GCBDAT/"produkt".key")) true)
  577.       (
  578.         (set text
  579.           (cat "\nKopiere die Oberfläche von "produkt" und die Dokumentation"
  580.                " in das Verzeichnis "GCBDir
  581.                "\n\n"
  582.                "\nDies ist eine registrierte Shareware-Verion. Nochmals "
  583.                "vielen Dank für die Unterstützung des Shareware-Konzepts"
  584.           )
  585.         )
  586.       )
  587.     )  
  588.     (message text)
  589.     (copyfiles
  590.       (prompt (cat "Installiere "produkt))
  591.       (source "GCBProdukte/")
  592.       (pattern "#?")
  593.       (dest GCBDir)
  594.     )
  595.     (set frage
  596.       (cat "Bitte wählen Sie einen geeigneten Monitor-Treiber aus:"
  597.       )
  598.     )
  599.     (set tpal
  600.       (cat "PAL"
  601.       )
  602.     )
  603.     (set tmulti
  604.       (cat "MultiScan-Monitor"
  605.       )
  606.     )
  607.     (set monitor
  608.       (askchoice
  609.         (prompt frage)
  610.         (choices tpal tmulti)
  611.         (help @askchoise-help)
  612.       )
  613.     )
  614.     (if (= produkt "GCBPlaner")
  615.       (set gespfad
  616.         (cat GCBDIR Produkt".bearb"
  617.         )
  618.       )
  619.     )
  620.     (if (NOT (= produkt "GCBPlaner"))
  621.       (set gespfad
  622.         (cat GCBDIR Produkt
  623.         )
  624.       )
  625.     )
  626.     (run
  627.       (cat "delete >nil: "gespfad)
  628.     )
  629.     (if (= monitor 0)
  630.       (
  631.         (run
  632.           (cat "rename >nil: "gespfad".Pal "gespfad)
  633.         )
  634.       )
  635.     )
  636.     (if (= monitor 1)
  637.       (
  638.         (run
  639.           (cat "rename >nil: "gespfad".MultiScan "gespfad)
  640.         )
  641.       )
  642.     )
  643.     (if (= (exists "libs/CanDo.library") true)
  644.       (
  645.         (copylib
  646.             (prompt "Installiere CanDo.library")
  647.             (help @copylib-help)
  648.             (confirm)
  649.             (source "libs/CanDo.library")
  650.             (dest "Libs:")
  651.         )
  652.       )
  653.     )
  654.     (if (= (exists "libs/CanDoGfx.library") true)
  655.       (
  656.         (copylib
  657.             (prompt "Installiere CanDoGfx.library")
  658.             (help @copylib-help)
  659.             (confirm)
  660.             (source "libs/CanDoGfx.library")
  661.             (dest "Libs:")
  662.         )
  663.       )
  664.     )
  665.     (if (= (exists "libs/INOVAMusic.library") true)
  666.       (
  667.         (copylib
  668.             (prompt "Installiere INOVAMusic.library")
  669.             (help @copylib-help)
  670.             (confirm)
  671.             (source "libs/INOVAMusic.library")
  672.             (dest "Libs:")
  673.         )
  674.       )
  675.     )
  676.     (if (= (exists "Fonts/GCBPlaner.font") true)
  677.       (
  678.         (copyfiles
  679.           (prompt "Installiere Fonts")
  680.           (source "Fonts/")
  681.           (pattern "#?")
  682.           (dest "Fonts:")
  683.         )
  684.       )
  685.     )
  686.     (if (= (exists "s/GCBProdukt.exists") true)
  687.       (
  688.         (copyfiles
  689.           (prompt "Installiere GCB-Marker")
  690.           (source "S/")
  691.           (pattern "#?")
  692.           (dest "S:")
  693.         )
  694.       )
  695.     )
  696.     (if (= gcbvorhanden false)
  697.       (
  698.         (copyfiles
  699.           (prompt "Installiere Schubladen-Icon")
  700.           (source "GCBProdukte.info")
  701.           (dest GCBWahl)
  702.         )
  703.       )
  704.     )
  705.     (if (= gcbvorhanden false)
  706.       (
  707.         (set user_script
  708.           (cat "  Assign GCBProdukte: \"" GCBORGXX "\""
  709.           )
  710.         )
  711.         (working omp "Updating S:User-Startup.")
  712.         (startup "GCB-Produkte"
  713.           (prompt
  714.               "Diese Instruktionen müssen an die Datei \"S:User-Startup\" hinzugefügt"
  715.                 "werden."
  716.                 "Somit ist Ihr System für den Einsatz von "produkt" konfiguriert.\n\n"
  717.                 user_script
  718.             )
  719.             (help @startup-help)
  720.             (command user_script)
  721.         )
  722.       )
  723.     )
  724.   )
  725. )
  726. (complete 90)
  727. ;-------------------------------------------------------------------
  728. ; Kopieren Zwischendateien aus RAM: (pattern produkt & wahl = 0)
  729. ;-------------------------------------------------------------------
  730. (if (and (= wahl 0) (= (exists "RAM:GCBDAT/GCBPlaner.info") 1))
  731.   (
  732.     (copyfiles
  733.       (prompt "Kopiere pers. Datenfiles in neue Installation")
  734.       (source "RAM:GCBDAT/GCBPlaner.info")
  735.       (dest "SYS:WBStartup/")
  736.     )
  737.     (run "delete >nil: ram:gcbdat/GCBPlaner.info")
  738.   )
  739. )
  740. (if (and (= wahl 0) (= (exists "RAM:GCBDAT/") 2))
  741.   (
  742.     (copyfiles
  743.       (prompt "Kopiere pers. Datenfiles in neue Installation")
  744.       (source "RAM:GCBDAT/")
  745.       (pattern (cat produkt"#?"))
  746.       (dest GCBDir)
  747.     )
  748.     (run "delete >nil: ram:gcbdat all")
  749.   )
  750. )
  751. (complete 100)
  752. ;-------------------------------------------------------------------
  753. ; Auskunft über System (wahl = 2)
  754. ;-------------------------------------------------------------------
  755. (if (= wahl 2)
  756.    (
  757.      (run "Version >ENV:GCBInfo")
  758.      (set systeminfo
  759.        (cat "Information über Ihr System:\n\n"
  760.             (getenv "GCBInfo")
  761.             "\n"produkt" "version
  762.        )
  763.      )
  764.      (delete "ENV:GCBInfo")
  765.      (message systeminfo)
  766.      (exit (quiet))
  767.    )
  768. )
  769. (complete 100)
  770. ;-------------------------------------------------------------------
  771. ; Endlich am Ende
  772. ;-------------------------------------------------------------------
  773. (set @default-dest GCBDir)
  774. (set text
  775.   (cat "Die Installation von "produkt" "version" ist nun abgeschlossen."
  776.        "\n\nBitte lesen Sie die Dokumentation, zu diesem Produkt, die Sie "
  777.        "in "GCBDir" finden können, bzw. mir der Help-Taste aus dem Programm heraus"
  778.        " aufrufen können.\n\nViel Spaß mit Ihrer neuen Software"
  779.   )
  780. )
  781. (exit text)